package csl.blog.server.common.model;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import lombok.Data;

@Data
public abstract class BaseMessage {
    private long msgId;

    public BaseMessage(){
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        this.msgId = snowflake.nextId();
    }
}
